<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="robots" content="all" />
    <meta name="Author" content="" />
    <meta name="Keywords" content="" />
    <meta name="Description" content="" />
    <link href="/static/admin/css/base.css" rel="stylesheet" rev="stylesheet" type="text/css" media="screen, projection" />
    <title>登录 &raquo; Blog</title>
</head>

<body id="sign">
<div id="wrap">
    <div id="sign-box">
        <div class="powered">
            <div id="logo"><a href="http://www.snippet.cc" title="SNIPPET"><img src="/static/admin/images/logo-small.gif" alt="logo" /></a></div>
            <div class="info">
                <p>Python开源Blog</p>
                <p>使用<a href="#" title="">flask</a> + <a href="#" title="">sqlachemy</a>开发</p>
                <p>支持多人发布，拥有模板系统</p>
            </div>
        </div>
        <div class="form-box">
            <h3>登录BLOG后台</h3>
            <form method="post" action="">             
            <table cellspacing="0">
            <tbody>
                {% for field in form %}
                <tr>
                    <th>{{ field.label }}</th>
                    <td>
                    {% if field.type in ['TextField','PasswordField','TagListField'] %}
                        {{ field(class_="text")|safe }}
                    {% else %}
                        {{ field|safe }}
                    {% endif %}
                    {% if field.flags.required %}<strong class="required">*</strong>{% endif %}
                    {% if field.errors %}
                    <div class="errors">
                        <ul>
                        {% for error in field.errors %}<li>{{ error }}{% endfor %}
                        </ul>
                    </div>
                    {% endif %}
                    </td>
                </tr>
            {% endfor %}
                <tr>
                    <th></th>
                    <td><input type="submit" class="button" value="登录" /> <a href="#" title="">忘记密码？</a></td>
                </tr>
            </tbody>
            </table>
            </form>
            {% if errors %}<p class="errors">{{ errors }}</p>{% endif %}
        </div>
    </div>
    <div id="sign-bg"><div class="box">Powered by <a href="http://www.laoqiu.com/" title="SNIPPET">LaoQiu</a></div></div>
</div>
</body>
</html>